home *** CD-ROM | disk | FTP | other *** search
- Path: redstone.interpath.net!mercury!softbase
- From: softbase@mercury.interpath.net (Scott McMahan - Softbase Systems)
- Newsgroups: comp.lang.c
- Subject: Re: why not add getch() to the std C RTL?
- Date: 5 Feb 1996 22:50:39 GMT
- Organization: Interpath -- Providing Internet access to North Carolina
- Message-ID: <4f61k0$446@redstone.interpath.net>
- References: <DM85L8.5Jn@emr1.emr.ca> <bnelsonDM887t.LDI@netcom.com>
- NNTP-Posting-Host: mercury.interpath.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Bob Nelson (bnelson@netcom.com) wrote:
-
- : "People often wonder why ANSI C didn't define a standard function to
- : get a character if a key has been pressed. Without a standard
- : function, every system has a different method and program portability
- : is lost. The argument against providing kbhit() as part of the
- : standard is that *it is mostly useful for GAMES software* and there
- : are many other terminal I/O features that are not standardized. In
- : addition, you don't want to promise a standard library function *that
- : SOME OS's will find difficult to provide.* The argument for providing
- : it is that it is mostly useful for games software and that games
- : writers don't need the myriad of other terminal I/O features that
- : could be standardized. Whichever view you hold, it's true the XJ311
- : missed an opportunity to reinforce C as the language of choice for a
- : generation of programmers writings games on UNIX."
-
- : Comments?
-
- Although I think Van Der Linden is great, his belief that the personal
- computer is useful for nothing but games and therefore all programming
- concerns based on PCs are not worth discussing is a flaw in his
- very UNIX-biased book. He'd been better to have left out all the PC
- stuff that to trivialize it. This quote isn't as bad as some of them in his
- book.
-
- I can't imagine any non-trivial interactive program that doesn't need some
- kind of immediate non-buffered input.
-
- Scott
-
-